import heapq

a = [19, 4, 7, 10]
b = [2, 5, 6, 11]

for c in heapq.merge(a,b):
    print(c)
